package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.VideoCollection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface VideoCollectionDao extends BaseMapper<VideoCollection> {

    void addVideoCollection(VideoCollection videoCollection);

    void deleteVideoCollection(@Param("videoId") Long videoId, @Param("userId") Long userId);

    Long getVideoCollections(Long videoId);

    VideoCollection getVideoCollectionsByVideoIdAndUserId(@Param("videoId") Long videoId, @Param("userId") Long userId);


}
